﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="tjb.WebTest.Dialog.otest.WebForm1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">

    <script language="javascript" type="text/javascript">
    function act(RGB) {
  if (document.all)//IE判断
 {
 parent.window.returnValue="#"+RGB;
 window.close();//firefox不支持

}
 else
 {
 window.opener.returnAction("#"+RGB);
 top.close();//IE和FireFox都支持
 }
}
    </script>

    <div onclick="act('ccc')">
        close
    </div>
    </form>
</body>
</html>
